#include <syslog.h>
#include <stdio.h>

#include "log.h"

void print_data(const char *msg, const void *data, size_t datalen)
{
	fprintf(stdout, "%s:", msg);
	while (datalen--) {
		fprintf(stdout, "%02hhX ", *(unsigned char *)data++);
	}
	fprintf(stdout, "\n");
}
